<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<base href="<%=basePath%>">
<link href="background/css/main.css" rel="stylesheet" type="text/css" />
</head>

<body>
<s:form action="uploadFile.action" method="post" enctype="multipart/form-data" >
	<tr>
		<td colspan="2" class="header">
			<s:text name="header" />
		</td>
	</tr>
	<s:textfield name="descript" key="descript" required="true" cssStyle="width:80%" />
	<s:select name="type" key="type" required="true" list="#{4:'下载文件',2:'规章制度',3:'建设规划'}" headerKey="-1" headerValue="请选择文件类型" />
	<s:file name="file" key="file" required="true" />
	<tr>
		<td></td>
		<td>
			<span style="font-size:12px;color:red">
        	文件最大限制为10M 允许上传文件的类型为：doc、xls、ppt、pdf、zip
        	</span>
		</td>
	</tr>
	<tr>
    	<td colspan="2" class="button">
    		<s:reset key="reset" theme="simple" />
    		<s:submit key="submit" theme="simple" />
    	</td>
	</tr>
</s:form>
</body>
</html>